import request from "@/utils/request";

//新闻公告列表
export function queryJournalismList(params) {
	return request({
		method: "get",
		url: "tbSysJournalism/queryPageList",
		headers: { userButton: '65c10022c28a475fa2561f89393fba17' },
		params
	});
}

//新闻公告新增
export function addedJournalism(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/add",
		headers: { userButton: 'd8e20bcaea98466b9950765c709b4f61' },
		data
	});
}

//新闻公告修改
export function updateJournalism(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/update",
		headers: { userButton: '4b1dacb13f2b4756ba4ea7ccff3651b9' },
		data
	});
}

//新闻公告删除
export function deleteJournalism(id) {
	return request({
		method: "get",
		url: "tbSysJournalism/delete/" + id,
		headers: { userButton: '9ea71b6703af46898060896b0cf5f4b9' }
	});
}

//新闻公告详情
export function journalismDetail(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/queryInfo",
		headers: { userButton: '971a7252fcdc412d8cb508dfc8441fc8' },
		data
	});
}

//发布/下架新闻公告
export function updateJournalismDel(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/updateDel",
		headers: { userButton: 'd49cff8441a3446290c22f619509f8cb' },
		data
	});
}
//更新新闻公告排序
export function updateJournalismSort(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/updateSort",
		headers: { userButton: '7d45c3ff3b774b328b44732ce56b7489' },
		data
	});
}

//更新新闻公告置顶
export function updateJournalismTop(data) {
	return request({
		method: "post",
		url: "tbSysJournalism/updateTop",
		headers: { userButton: 'e2e16b50a350441ca2ff354732794eb5' },
		data
	});
}